<?php

/**
 * Controller.php
 */
class Controller extends CController {

    public $breadcrumbs = array();
    public $menu = array();
    public $description;
    public $keywords;

    public function __construct($id, $module = null) {
        parent::__construct($id, $module);

        cs()->registerCoreScript('jquery');
    }


    /**
     * function run after layout loaded
     * @param type $view
     * @param type $output
     */
    public function afterRender($view, &$output) {

        Yii::app()->clientScript->registerMetaTag($this->description, 'description');
        Yii::app()->clientScript->registerMetaTag($this->keywords, 'keywords');

    }

}
